<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <css file="__PUBLIC__/Css/public.css"/>
        <style type='text/css'>
            #wrap {width:94%;height:auto;overflow: hidden;margin: 20px auto;padding: 10px 20px;border: 1px solid #ccc}
            .add-app {display: block;width: 100px;height: 28px;line-height:28px; text-align: center;background: #670768;color: #fff;border-radius: 4px;}
            .app {padding: 10px;margin-top: 20px;border: 1px solid #f6f6f6;}
            .app p {height: 30px;line-height: 30px;}
            .app p strong {font-size: 16px;color: #0b99d8;}
            .app dl {margin: 10px 0;border: 1px solid #dcdcdc;height: auto;overflow: hidden}
            .app dl dt {display: block;height: 36px;line-height: 36px;background: #e6e6fa;text-indent: 10px;}
            .app dl dt strong {color: #61a1fa}
            .app dl dd {padding: 10px;float: left;}
            
        </style>
    </head>
    <body>
        <div id='wrap'>
            <a  href="{:U('Admin/Rbac/addNode')}" class='add-app'>添加应用</a>
            <foreach name='node' item='app'>
                <div class='app'>
                    <p>
                        <strong>{$app.title}</strong>
                        [<a href="{:U('Admin/Rbac/addNode',array('pid'=>$app['id'],'level'=>2))}" >添加控制器</a>]
                    </p>
                    <foreach name='app.child' item='action'>
                        <dl>
                            <dt>
                                <strong>{$action.title}</strong>
                                [<a href="{:U('Admin/Rbac/addNode',array('pid'=>$action['id'],'level'=>3))}">添加动作</a>]
                            </dt>
                            <foreach name='action.child' item='method'>
                                <dd>
                                    <span>{$method.title}</span>
                                    [<a href='#'>修改</a>]
                                    [<a href='#'>删除</a>]
                                </dd>
                                
                            </foreach>
                        </dl>
                        
                    </foreach>
                </div>
                
            </foreach>
            
            
        </div>
    </body>
</html>
